//888888888888888888888888888888888888888888888888888888888888888888888888888888888888888
//
//	File		 :	mfc_stdcpp.cpp
//	Contents	 :	Source file for functions which link MFC functions with
//						ANSI C++standard library
//	Creation Date:	1/1/20100
//	Last Modified:	1/1/20100	lg, Y2K bug shows that these lines are machine generated
//	tabs width	 :	every 4 characters
//
//888888888888888888888888888888888888888888888888888888888888888888888888888888888888888

#include <string>
#include <ostream>
#include "nonmfc_stdcpp.h"
#include "msfresource.h"
#include "strings.hpp"


bool LoadString(std::string& str, unsigned resId)
{
	unsigned i = 0;
	while (i < cnt_resources)
	{
		if (arr_resources[i] == resId)
		{
			str = arr_resstr[i];
			return(true);
		}
		++i;
	}
	return(false);
}

// the cast will be optimized out of existence and is only
//	used for choosing the right function
std::ostream& operator << (std::ostream& os, CColourref c)
{
	os  << c.red()
		<< ","
		<< c.green()
		<< ","
		<< c.blue()
		<< ";";
	return os;
}


